package com.zyong.design.pattern.state.case4;

/**
 * @program: zyong-design-pattern
 * @ClassName: State
 * @author: zyong
 * @create: 2024-03-25 00:30
 */
public interface State {
    /**
     * 行为
     * @param stateContext
     */
    void doProcess(StateContext stateContext);

    /**
     * 下一个状态
     * @param stateContext
     * @return
     */
    State nextState(StateContext stateContext);
}
